<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>detail</title>
	</head>
		<f:view>
			<body>
			<h2>about patient</h2>
				<h3>--test patient</h3>
			<h:form>
				<p:dataTable value="#{patientBean.allPatient}" var="pat"> 
						
					<p:column>
						<f:facet name="header">
							<h:outputText value="序号" />
						</f:facet>   
     					<h:outputText value="#{pat.pk}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="姓名" />
						</f:facet>  
						<h:outputText value="#{pat.pat_name}"/>
  					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="年龄" />
						</f:facet> 
							<h:outputText value="#{pat.pat_age}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="性别" />
						</f:facet>
						<h:outputText value="#{pat.pat_sex}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="住址" />
						</f:facet>
						<h:outputText value="#{pat.pat_address}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="出生年月" />
						</f:facet>
						<h:outputText value="#{pat.pat_birthday}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="创建日期" />
						</f:facet>
						<h:outputText value="#{pat.created_time}"/>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="更新日期" />
						</f:facet>
						<h:outputText value="#{pat.updated_time}"/>
					</p:column>
					<p:column>
						<h:outputLink type="submit" value ="faces/find.jsp">
						<f:param name = "pat_pk" value = "#{pat.pk}"/>
							<h:outputText value = "more"/>
						</h:outputLink>
					</p:column>
				
				</p:dataTable>
			
			</h:form>
		</body>
	</f:view> 
</html>